package com.xy.annotaion.handler.processor;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor;
import org.springframework.stereotype.Component;

/**
 * @author Dell
 */
@Component
public class TestDestructionAwareBeanPostProcessorImpl implements DestructionAwareBeanPostProcessor, LogService {
    @Override
    public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
        log(bean, beanName);
    }
}
